package com.xxx.blog.base.auth;

import org.apache.shiro.authc.AuthenticationToken;

/*******************************************************************************
 * Project: blog-base
 * Package: com.xxx.blog.base.auth
 * Type:    OAuth2Token
 * Author:  ChenXuefei
 * Date:    2017/12/12 11:33
 *
 * Copyright (c) 2017 AFCATSTAR. All Rights Reserved.
 *******************************************************************************/
public class OAuth2Token implements AuthenticationToken {
    private String token;
    
    public OAuth2Token(String token) {
        this.token = token;
    }
    
    //    @Override
    public String getPrincipal() {
        return token;
    }
    
    //    @Override
    public Object getCredentials() {
        return token;
    }
}
